package org.dromara.xxmj.mapper;

import org.apache.ibatis.annotations.Select;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.xxmj.domain.ExamInfo;
import org.dromara.xxmj.domain.vo.GeographyVO;
import org.dromara.xxmj.domain.vo.ExamInfoVO;
import org.dromara.xxmj.domain.vo.RecentExamVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 课程章节Mapper接口
 *
 * @author Vincent
 */
@Repository
public interface ExamInfomationMapper extends BaseMapperPlus<ExamInfo, ExamInfoVO>{

    @Select({
        "select * from geography_info WHERE status = 1"
    })
    List<GeographyVO> getProvinceList();

    List<RecentExamVO> recentExam(Long userId);
}
